﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Answers.MyQA" %>
<asp:Literal ID="lNCount" Text="10" runat="server" Visible="false" />
<div class="common">
<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("AS018")%></h1>
							</div>
							<div class="submenuN_button" style="top:30"><a href="/answers/ask.htm" class="Naddbtn btnspec"><span>&nbsp;&nbsp;&nbsp;<%=GetText("AS002")%>&nbsp;&nbsp;&nbsp;</span></a></div>
						</div>
					</div>
				</div>
				<div>
					<ul class="sort_sel">
						<li id="spanQuesType1" <%=(CurType == 1 | CurType == 2)?"class=\"selATags first\"":"class=\"first\""%> onclick="javascript:location.href='<%=WWWHost%>/answers/MyQA.htm';" style="cursor:pointer"><span><%=GetText("AS144")%></span></li>
						<li id="spanQuesType2" <%=(CurType == 3 | CurType == 4)?"class=\"selATags\"":"class=\"\""%> onclick="javascript:location.href='<%=WWWHost%>/answers/MyQA-1-3.htm';" style="cursor:pointer"><span><%=GetText("AS145")%></span></li>							
					</ul>
					<div class="clear"></div>
					<!--popular latest-->
				</div>
				<div class="Center9001n">
					<div class="Center9001Right">
						<div class="Center9001Content">
							<div class="answers_area">
								<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_title">
									<tr>
										<td class="" style='<%=(CurType == 3 | CurType == 4)?"display:none":""%>'><%=CurType == 1 ? "<span style=\"font-weight:bold\">"+GetText("AS020").ToString()+"</span>" : "<a href=\"" + WWWHost + "/answers/myQA.htm\" > "+ GetText("AS020") +"</a>"%> | <%=CurType == 2 ? "<span style=\"font-weight:bold\">"+GetText("AS021").ToString()+"</span>" : "<a href=\"" + WWWHost + "/answers/myQA-1-2.htm\" > "+ GetText("AS021") +"</a>"%></td>
										<td class="" style='<%=(CurType == 1 | CurType == 2)?"display:none":""%>'><%=CurType == 3 ? "<span style=\"font-weight:bold\">"+AS139+"</span>" : "<a href=\"" + WWWHost + "/answers/myQA-1-3.htm\" > "+ AS139 +"</a>"%> | <%=CurType == 4 ? "<span style=\"font-weight:bold\">"+AS140+"</span>" : "<a href=\"" + WWWHost + "/answers/myQA-1-4.htm\" > "+ AS140 +"</a>"%></td>
										<td class="grey11" width="80" align="center"><%if (CurType == 1 || CurType == 3)
									{%>
										<%=GetText("AS143",new string[]{RecordCount.ToString()})%>
									<%}
									else
									{%>
										<%=string.Format(AS142,RecordCount.ToString())%>
									<%} %></td>
									</tr>
								</table>
								<div class="alist">																
									<asp:Repeater ID="rptMyQ" runat="server">
										<ItemTemplate>
									    <div class="alist_list">																
										    <div class="floatl wid65"><div class="pic50"><a class="photo_50" href="<%#WWWHost%>/<%#Eval("MemberNo") %>.htm" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Nickname").ToString()) %>"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div></div>
										    <div class="floatr alist_content">
											    <div><span class="text14"><a href="<%#WWWHost%>/answers/question/<%#Eval("QuestionID")%>.htm" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Question").ToString())%>"><img src="<%#QStatusImage(Eval("Status").ToString()) %>" align="absmiddle" border="0"/></a> <a href="<%#WWWHost%>/answers/question/<%#Eval("QuestionID")%>.htm"><%#HttpUtility.HtmlAttributeEncode(Eval("Question").ToString())%></a></span></div>
											    <div class="margin5D">
												    <div class="floatl grey11 alist_info"><%#QMessage(Eval("Status").ToString(), Eval("DiffLastUpdate").ToString(), Eval("MemberNo").ToString(), Eval("Nickname").ToString())%> - <%#string.Format(AS142,Eval("AnswerCount").ToString())%></div>
												    <div class="floatl alist_flag">
												        <div class="afk_flag_margin"><%#BLF.StaticData.HaveLanguageImage(Eval("LanguageLearn").ToString()) ? Eval("LanguageLearn", "<a href=" + WWWHost + "'/answers/learn-" + Eval("LanguageLearn") + "-all/1-1.htm'><img src=\"/images/language_{0}.gif\" border='0' align='absmiddle' /></a>") : ""%> <a href='<%#WWWHost%>/answers/learn-<%#Eval("LanguageLearn")%>-all/1-1.htm'><%#string.Format(C0105,BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString()))%></a></div>
												    </div>
												    <div class="clear"></div>
											    </div>
										    </div>
										    <div class="clear"></div>
									    </div>
										</ItemTemplate>
									</asp:Repeater>
									<asp:Repeater ID="rptNoMy" runat="server">
										<ItemTemplate>
									<div class="alist_list">																
										<div class="floatl wid65"><div class="pic50"><a class="photo_50" href="<%#WWWHost%>/<%#Eval("MemberNo") %>.htm" title="<%#Eval("Nickname") %>"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div></div>
										<div class="floatr alist_content">
											<div><span class="text14"><a href="<%#WWWHost%>/Answers/question/<%#Eval("QuestionID")%>.htm" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Question").ToString())%>"><img src="<%#QStatusImage(Eval("Status").ToString()) %>" align="absmiddle" border="0"/></a> <a href="<%#WWWHost%>/Answers/question/<%#Eval("QuestionID")%>.htm"><%#HttpUtility.HtmlAttributeEncode(Eval("Question").ToString())%></a></span></div>
											<div class="margin5D">
												<div class="floatl grey11 alist_info"><%#string.Format(AS063,"<a href="+WWWHost+"'/"+Eval("MemberNo") +".htm'>"+Eval("Nickname")+"</a>")%> -  <%#string.Format(AS142,Eval("AnswerCount").ToString())%> - <%#FormatDiffDate(C0037, Eval("DiffLastUpdate").ToString())%></div>
												<div class="floatl alist_flag"><div class="afk_flag_margin"><%#BLF.StaticData.HaveLanguageImage(Eval("LanguageLearn").ToString()) ? Eval("LanguageLearn", "<a href=" + WWWHost + "'/answers/learn-" + Eval("LanguageLearn") + "-all/1-1.htm'><img src=\"/images/language_{0}.gif\" border='0' alt='" + string.Format(C0105, BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString())) + "' align='absmiddle' /></a>") : ""%> <a href='<%#WWWHost%>/answers/learn-<%#Eval("LanguageLearn")%>-all/1-1.htm'><%#string.Format(C0105,BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString()))%></a></div></div>
												<div class="clear"></div>
											</div>
										</div>
										<div class="clear"></div>
									</div>
										</ItemTemplate>
									</asp:Repeater> 
								</div>
								<div id="divPage" class="page_num">
									<%=CreatePageNav(RecordCount, 20, pageIndex, 
										"",
										string.Format("<span class='page_none grey10'><a href='{2}/answers/myQA-$I$-{0}.htm'>{1}</a></span>&nbsp;",HttpUtility.UrlEncode(Request["MDType"]),HttpUtility.UrlEncode(GetText("Prev")),WWWHost),
										"",
										string.Format("<span class='page_none grey10'><a href='{2}/answers/myQA-$I$-{0}.htm'>{1}</a></span>&nbsp;",HttpUtility.UrlEncode(Request["MDType"]),HttpUtility.UrlEncode(GetText("Next")),WWWHost),
										string.Format("<span class='page_select'>{0}</span>&nbsp;",pageIndex),
										string.Format("<span class='page_none grey10'><a href='{1}/answers/myQA-$I$-{0}.htm'>$I$</a></span>&nbsp;",HttpUtility.UrlEncode(Request["MDType"]),WWWHost))%>									
								</div>
							</div>
						</div>
					</div>
					<div class="Center9001Left">
						<%if (CurType == 3 || CurType == 4)
						{%>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2014")%></h4>
								<div class="layer_contentA5">
									<ul class="common_right">
									<asp:Repeater ID="rptLL" runat="server">
										<ItemTemplate>										
											<li><a href='<%#WWWHost%>/answers/learn-<%#Eval("LanguageValue")%>-all/1-1.htm' title="<%#string.Format(C0105,Eval("LanguageText").ToString())%>"><img src='/images/language_<%#Eval("LanguageValue")%>.gif' align='absmiddle' border="0"  /></a> <a href='<%#WWWHost%>/answers/learn-<%#Eval("LanguageValue")%>-all/1-1.htm'><%#string.Format(C0105,Eval("LanguageText").ToString())%></a></li>
										</ItemTemplate>
									</asp:Repeater>
									</ul>
								</div>								
								<div class="margin5" style="text-align: right"> <a href="<%=WWWHost%>/answers/categories.htm"><%=GetText("C0028")%></a></div>
							</div>
						</div>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2001")%></h4>
								<div class="layer_contentA5">
									<ul class="tag_common_right">
									<%foreach(string tagl in TagList) {%>
										<li><a href="<%=WWWHost%>/answers/tag/<%=tagl%>-1.htm"><%=tagl %></a></li>
									<%} %>
									</ul>
								</div>
								<div class="margin5" style="text-align: right"><a href="<%=WWWHost%>/answers/tag/"><%=GetText("AS111")%></a></div>
							</div>
						</div>
						<%}
						else
						{%>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=AS139%></h4>
								<div class="layer_contentA5">
								<asp:Repeater ID="rptFQ" runat="server">
									<ItemTemplate>
									<div class="right_question_list">
										<div class="right_question_listPIC"><div class="picsp"><a class="photo_sp" href="<%#WWWHost%>/<%#Eval("MemberNo") %>.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div></div>
										<div class="right_question_listCON"><a href="<%#WWWHost%>/answers/question/<%#Eval("QuestionID")%>.htm"><%#HttpUtility.HtmlAttributeEncode(Eval("Question").ToString())%></a> <span class="grey12" dir="ltr">(<%#Eval("AnswerCount")%>)</span></div>
										<div class="clear"></div>
									</div>
									</ItemTemplate>
								</asp:Repeater>
								<p align="right"><a href="<%=WWWHost%>/answers/myQA-1-3.htm"><%=GetText("AS089")%></a></p>
								</div>
							</div>
						</div>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=AS140%></h4>
								<div class="layer_contentA5">
								<asp:Repeater ID="rptFA" runat="server">
									<ItemTemplate>
									<div class="right_question_list">
										<div class="right_question_listPIC"><div class="picsp"><a class="photo_sp" href="<%#WWWHost%>/<%#Eval("MemberNo") %>.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div></div>
										<div class="right_question_listCON"><a href="<%#WWWHost%>/answers/question/<%#Eval("QuestionID")%>.htm"><%#HttpUtility.HtmlAttributeEncode(Eval("Question").ToString())%></a> <span class="grey12" dir="ltr">(<%#Eval("AnswerCount")%>)</span></div>
										<div class="clear"></div>
									</div>
									</ItemTemplate>
								</asp:Repeater>
								<p align="right"><a href="<%=WWWHost%>/answers/myQA-1-4.htm"><%=GetText("AS141")%></a></p>
								</div>
							</div>
						</div>
						<%} %>
					</div>
					<div class="clear"></div>
				</div>
			</div>
		</div>
		<div id="body_right"></div>
		<div class="clear"></div>
	</div>
	<div id="body_900F"></div>
</div>
